<!-- This template renders the Document Root -->

{% extends "questions.html" %}
<!-- fill up the QUESTIONS.HTML template!!!! -->
<!-- If /questions is directly called this code is ignored! -->


{% load general_sidebar_tags %}
{% load question_list_tags %}
{% load i18n %}

<!-- This code goes directly in the Title, therefore we do not add comments inside this block -->
{% block fulltitle %}
	{{ settings.APP_TITLE }}
{% endblock %}

<!-- For the moment we use the question sidebar also on the index. 
	Therefore the following block should be named _sidebar to overwrite
	the settings of questions.html -->
{% block no_sidebar %}
	<!-- index sidebar -->
	<!-- The sidebar looks slightly different for the doc-root and /questions: -->
    {% if not request.user.is_authenticated %}
	<!-- Non authenticated users get a welcome message on the sidebar_-->
        {% if settings.SHOW_WELCOME_BOX %}
            <div class="boxA">
                <h3>{% trans "welcome to " %}{{ settings.APP_SHORT_NAME }}</h3>
                <div class="body">
                  {{ settings.APP_INTRO|safe }}
                  <div class="more"><a href="{% url about %}">{% trans "about" %} </a></div>
                  <div class="more"><a href="{% url faq %}">{% trans "faq" %} </a></div>
                </div>
            </div>
        {% endif %}
    {% endif %}
	<!-- Show number of recently ask questions_-->
    {% include "question_list/count.html" %}

	<!-- display commercials -->
	{# sidebar_upper #}

    {% if request.user.is_authenticated %}
		<!-- Show boxes Interesting Tags, Ignored Tags_-->
        {# tag_selector #}
    {% endif %}

	<!-- Show Information text: "Learn more about" -->
    {# sidebar_lower #}
    
	<!-- Recent tags and awards -->
    {% recent_tags %}
    {# recent_awards #}
    
<!-- index sidebar -->
{% endblock %}

